from google.appengine.ext import db

class User(db.Model):
    id = db.StringProperty(required=True)
    created = db.DateTimeProperty(auto_now_add=True)
    updated = db.DateTimeProperty(auto_now=True)
    name = db.StringProperty(required=True)
    profile_url = db.StringProperty(required=True)
    access_token = db.StringProperty(required=True)

class GeocodedLocation(db.Model):
    """ For storing geocoded locations """
    address = db.StringProperty(required=True)
    latitude = db.StringProperty(required=True)
    longitude = db.StringProperty(required=True)

